package interview.preparation;

import java.util.ArrayList;
import java.util.List;

/**
 * This is Sachin. Just learning more stuff.
 * @author Sachin Takkar
 *
 */
public class TestAndLearn {

	public static final boolean FLAG = true;
	
	public static void sort(int[] a, int maxVal){
        int [] bucket=new int[maxVal+1];

        for (int i=0; i<bucket.length; i++){
            bucket[i]=0;
        }

        for (int i=0; i<a.length; i++){
            bucket[a[i]]++;
        }

        print(bucket);

        int outPos=0;
        for (int i=0; i<bucket.length; i++){
            for (int j=0; j<bucket[i]; j++){
                a[outPos++]=i;
            }
        }
    }

    
    public static void main(String[] args){
//        int maxVal=3;
//        int [] data= {1,0,1,2,3,1,0,3,1,0,1,3}; //ArrayUtil.randomIntArray(10,maxVal+1);
//
//        print(data);
//
//        sort(data,maxVal);
//
//        print(data);
    	int abc[][] = new int [3][4];
    	
    	byte a =5;
    	byte b=7;
    	byte c = 7+7;
    	byte ab = 7 | 7;

//    	List<Object> abcd = new ArrayList<Object>();
//    	abcd.add("Abc");
//    	
//     	System.out.println("Pick up from deck of 52 cards "+ Math.random()*52 + abc[1][45]);

    	int [] array = new int [3];
    	array[0]=a;
    	System.out.println(array.length);
    
    }


	private static void print(int[] data) {
		System.out.println("  ");
		for (int count =0; count< data.length; count++){
			System.out.print(data[count]);
		}
	}
}
